package com.wsc.wisdomchinaqinghe.presenter;

import android.content.Context;

import com.loopj.android.http.RequestParams;
import com.wsc.wisdomchinaqinghe.Tools.Tools;
import com.wsc.wisdomchinaqinghe.callback.ContributorView;
import com.wsc.wisdomchinaqinghe.constant.Constant;
import com.wsc.wisdomchinaqinghe.httpUtils.HttpHeadParams;
import com.wsc.wisdomchinaqinghe.httpUtils.LoadCacheResponseLoginouthandler;
import com.wsc.wisdomchinaqinghe.httpUtils.LoadDatahandler;
import com.wsc.wisdomchinaqinghe.httpUtils.RequstClient;

import java.util.Date;

/**
 *
 */
public class ContributorPresenter {
    private ContributorView contributorView;
    private Context context;

    public ContributorPresenter(ContributorView contributorView, Context context) {
        this.context = context;
        this.contributorView = contributorView;
    }

    /**
     * 无网络参数的Get请求
     *
     * @param url
     * @param flag 标识
     */
    private void getAsyncMessage(String url, final String flag) {
        getAsyncMessage(url, null, flag);
    }

    /**
     * 无网络参数的post请求
     *
     * @param url
     * @param flag 标识
     */
    private void postAsyncMessage(String url, final String flag) {
        postAsyncMessage(url, null, flag);
    }

    /**
     * 有网络参数的Get请求
     *
     * @param url
     * @param requestParams 网络参数
     * @param flag          标识
     */
    private void getAsyncMessage(String url, RequestParams requestParams, final String flag) {
        RequstClient.get(url, requestParams, new LoadCacheResponseLoginouthandler(context, new LoadDatahandler() {
            @Override
            public void onStart() {
                // TODO Auto-generated method stub
                super.onStart();
                if (contributorView != null) {
                    contributorView.onLoadContributorStart(flag);
                }
            }

            @Override
            public void onSuccess(String data) {
                // TODO Auto-generated method stub
                super.onSuccess(data);
                if (contributorView != null) {
                    contributorView.onLoadContributorSuccess(data, flag);
                }
            }

            @Override
            public void onFailure(String error, String message) {
                // TODO Auto-generated method stub
                super.onFailure(error, message);
                if (contributorView != null) {
                    contributorView.onLoadContributorError(message, flag);
                }
            }

            @Override
            public void onFinish() {
                // TODO Auto-generated method stub
                super.onFinish();
                if (contributorView != null) {
                    contributorView.onLoadContributorComplete(flag);
                }
            }

        }));
    }

    /**
     * 有网络参数的post请求
     *
     * @param url
     * @param requestParams 网络参数
     * @param flag          标识
     */
    private void postAsyncMessage(String url, RequestParams requestParams, final String flag) {
        RequstClient.post(url, requestParams, new LoadCacheResponseLoginouthandler(context, new LoadDatahandler() {
            @Override
            public void onStart() {
                // TODO Auto-generated method stub
                super.onStart();
                if (contributorView != null) {
                    contributorView.onLoadContributorStart(flag);
                }
            }

            @Override
            public void onSuccess(String data) {
                // TODO Auto-generated method stub
                super.onSuccess(data);
                if (contributorView != null) {
                    contributorView.onLoadContributorSuccess(data, flag);
                }
            }

            @Override
            public void onFailure(String error, String message) {
                // TODO Auto-generated method stub
                super.onFailure(error, message);
                if (contributorView != null) {
                    contributorView.onLoadContributorError(message, flag);
                }
            }

            @Override
            public void onFinish() {
                // TODO Auto-generated method stub
                super.onFinish();
                if (contributorView != null) {
                    contributorView.onLoadContributorComplete(flag);
                }
            }

        }));
    }

    public void getUserSendVcode(String phone,int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.TYPE,type);
            postAsyncMessage(Constant.USER_SEND_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postSendCode(String phone,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            postAsyncMessage(Constant.VERIFICATION_SEND_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUserJudgeVcode(String phone, String vcode, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.VCODE, vcode);
            postAsyncMessage(Constant.USER_JUDGE_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getVerificationComplete(String phone, String pCode,String streetId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PCODE, pCode);
            requestParams.put(Constant.STREETID, streetId);
            postAsyncMessage(Constant.VERIFICATION_JUDGE_VCODE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUserSetInfo(String cid,String phone, String pwd, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PWD, pwd);
            postAsyncMessage(Constant.USER_SET_INFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUserLogin(String phone, String pwd, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PWD, pwd);
            postAsyncMessage(Constant.USER_LOGIN, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 生活缴费公司列表
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param cid 街道ID
     * @param flag
     */
    public void getHomeItemList(String projectId,String cid,String flag){
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.CID, cid);
        getAsyncMessage(Constant.HOMEITEMLIST, requestParams, flag);
    }

    /**
     * 生活缴费公司列表
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param itemId 货源ID
     * @param flag
     */
    public void getHomeItemName(String projectId,String itemId,String flag){
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.ITEMID, itemId);
        getAsyncMessage(Constant.HOMEITEMNAME, requestParams, flag);
    }

    /**
     * 生活缴费公司列表
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param itemId 货源ID
     * @param flag
     */
    public void getHomeSetUpInput(String projectId,String account,String itemId,String cid,String flag){
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.ACCOUNT, account);
        requestParams.put(Constant.ITEMID, itemId);
        requestParams.put(Constant.CID,cid);
        getAsyncMessage(Constant.HOMESETUPINPUT, requestParams, flag);
    }

    /**
     * 生活缴费公司列表
     * @param projectId 业务编码 c2670水费c2680电费 c2681燃气费
     * @param itemId 货源ID
     * @param flag
     */
    public void postHomePay(String uid,Double poundage,String projectId,String account,String unitName,String month,String customerName,String customerAddress,String cid,Double money,String itemId,String flag){
        Long t = new Date().getTime();
        String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
        HttpHeadParams.getInstance().setT(t.toString());
        HttpHeadParams.getInstance().setToken(token);
        RequestParams requestParams = new RequestParams();
        requestParams.put(Constant.UID, uid);
        requestParams.put(Constant.POUNDAGE, poundage);
        requestParams.put(Constant.PROJECTID, projectId);
        requestParams.put(Constant.ACCOUNT, account);
        requestParams.put(Constant.UNITNAME,unitName);
        requestParams.put(Constant.MONTH,month);
        requestParams.put(Constant.CUSTOMERNAME,customerName);
        requestParams.put(Constant.CUSTOMERAddress,customerAddress);
        requestParams.put(Constant.CID,cid);
        requestParams.put(Constant.MONEY,money);
        requestParams.put(Constant.ITEMID,itemId);
        postAsyncMessage(Constant.HOMEPAY, requestParams, flag);
    }

    public void getMyModuleInfo(String uid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.MY_MODELU_INFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getConvenienceDefaultServiceAddr(String uid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            getAsyncMessage(Constant.CONVENIENCEDEAFULTSERVICEADDR, requestParams, flag);
        } catch (Exception e) {
        }
    }

    /**
     * 获取街道ID
     * @param city
     * @param county
     * @param flag
     */
    public void getHomeFetchStreet(String city,String county, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.COUNTY, county);
            requestParams.put(Constant.CITY, city);
            //幸福清河
            getAsyncMessage(Constant.HOME_FETCH_STREET, requestParams, flag);
            //幸福桃花
//            getAsyncMessage(Constant.HOME_FETCH_TAOHUASTREET, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getConvenienceLifeserviceBook(String uid,String serverId,String addrId,String upDoorDate,int playTime,String message,int auntNumber,
                                              String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SERVERID, serverId);
            requestParams.put(Constant.ADDRID,addrId);
            requestParams.put(Constant.UPDOORDATE,upDoorDate);
            requestParams.put(Constant.PLAYTIME,playTime);
            requestParams.put(Constant.MESSAGE,message);
            requestParams.put(Constant.AUNTNUMBER,auntNumber);
            postAsyncMessage(Constant.CONVENIENCELIFESERVICEBOOK, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getUserUpdatePwd(String phone, String pwd, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.PWD, pwd);
            postAsyncMessage(Constant.USER_UPDATE_PWD, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyIp(String flag) {
        try {
            getAsyncMessage(Constant.MyIp,flag);
        } catch (Exception e) {
        }
    }

    public void getHomeBanner(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.HOME_BANNER, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeModule(String cid,int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE,type);
            getAsyncMessage(Constant.HOME_MODULE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeModuleList(String cid,int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE,type);
            getAsyncMessage(Constant.HOME_MODULELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddressListGetByIdMem(String pId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.pId, pId);
            getAsyncMessage(Constant.ADDRESSLIST_GETBYIDMEM, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddressListGetByTypeIdMemList(String streetId,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.ADDRESSLiST_GETBYTYPEIDMEMLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getNoticeGetBulletinList(String streetId,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETBULLETINLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getNoticeOnClickBulletin(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.ONCLICKBULLETIN, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getActivityList(String streetId,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETACTIVITYLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getActivityOne(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.GETACTIVITYONE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postEnrollActivity(String memId,String contactNumber,String activityId,String memName,String sex,String remark,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.memId, memId);
            requestParams.put(Constant.contactNumber, contactNumber);
            requestParams.put(Constant.activityId, activityId);
            requestParams.put(Constant.memName, memName);
            requestParams.put(Constant.SEX, sex);
            requestParams.put(Constant.REMARK, remark);
            postAsyncMessage(Constant.ENROLLACTIVITY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLearnTypeList(String streetId,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.GETLEARNTYPELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLearnContentList(String typeId,int skip,int limit,String memId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.TYPEID, typeId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.memId, memId);
            getAsyncMessage(Constant.GETLEARNCONTENTLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOnlineExamList(String streetId,int skip,int limit,String memId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.memId, memId);
            getAsyncMessage(Constant.GETONLINEEXAMLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOnlineExamOne(String pmcId,String memId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PMCId, pmcId);
            requestParams.put(Constant.memId, memId);
            getAsyncMessage(Constant.GETONLINEEXAMONE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getExercises(String pmcId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PMCId, pmcId);
            getAsyncMessage(Constant.GETEXERCISES, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLearnContentOne(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.GETLEARNCONTENTOne, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postLearnSchedule(String contentId,String learnSchedule,String learnUser,String recordId,int status,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.contentId, contentId);
            requestParams.put(Constant.learnSchedule, learnSchedule);
            requestParams.put(Constant.learnUser, learnUser);
            requestParams.put(Constant.recordId, recordId);
            requestParams.put(Constant.STATUS, status);
            postAsyncMessage(Constant.LEARNSCHEDULE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void postSubmitCheckRecord(String checkId,String memId,String streetId,String answers,String mName,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.checkId, checkId);
            requestParams.put(Constant.memId, memId);
            requestParams.put(Constant.STREETID, streetId);
            requestParams.put(Constant.answers, answers);
            requestParams.put(Constant.mName, mName);
            postAsyncMessage(Constant.SUBMITCHeCKRECORD, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommitteeDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.COMMITTEEDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessPromotionDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.BUSINESSPROMOTIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMessageDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.MessageBYID, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHomeBannerDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.HOME_BANNER_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessApplyList(String id, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.BUSINESSAPPLYLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAroundFindList(String cid, int type, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPE, type);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.AROUNDFINDLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLookList(String cid, String typeid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.TYPEID, typeid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.STREETNEWSSERVICELOOKLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getBuildingList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.BUILDING_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyList(String cid, int skip, int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMPANY_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLookListDetail(String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.LOOKLIST_DETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBusinessApplyDetail(String id, String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.BUSINESSAPPLYDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyModuleState(String uid,String streetId, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.STREETID,streetId);
            getAsyncMessage(Constant.MY_MODULE_STATE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingActivityList(String cid,int type,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.TYPE,type);
            getAsyncMessage(Constant.BUILDING_ACTIVITY_LIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityOlderList(String cid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYOLDERLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityHandicapList(String cid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYHANDICAPLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMyModuleMessage(String uid,String streetId,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.STREETID, streetId);
            getAsyncMessage(Constant.MYMODULEMESSAGE, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getActivitySignup(String uid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYMODULEBUILDINGCOMMNIYTACTIVITYSIGNUP, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getQiYeFaBu(String uid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYMODULECOMPANYELEASE, requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getPeopleFeedbackList(String uid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.MYPEOPLEFeedBACKLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getJuWeiInfoList(String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            getAsyncMessage(Constant.COMMITTEELIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void  getLifeServiceList(String cid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.LifeServiceList, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void  getBusinessPromotionList(String cid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.BUSINESSPROMOTIONLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void  getStreetFeatures(String cid,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.CID, cid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.STREETFEATURES, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void  getMyModuleApply(String uid,int state,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.STATE,state);
            getAsyncMessage(Constant.MODULEMYAPPLY, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void  getMyModuleApplyInfo(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID, id);
            getAsyncMessage(Constant.MYMODULEMYAPPLYINFO, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void  getCommunityGetMyserver(String uid,int type,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            requestParams.put(Constant.TYPE,type);
            getAsyncMessage(Constant.COMMUNITYGETMYSERVER, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOlderOrganiationDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.OLDERORGANIZATIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAroundFindDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.AROUNDFINDDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getHandicapOrganizationDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.HANDICAPORGANIZATIONDETAIL, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityOlderOrganizationList(String id,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID,id);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYOLDERORGANIZATIONLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityHandicapOrganizationList(String id,int skip,int limit, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.ID,id);
            requestParams.put(Constant.SKIP, skip);
            requestParams.put(Constant.LIMIT, limit);
            getAsyncMessage(Constant.COMMUNITYHANDICAPORGANIZATIONLIST, requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUploadCommonParamsPicList(String params, String pic, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.PARAMS, params);
            requestParams.put(Constant.PIC,pic);
            postAsyncMessage(Constant.UPLOADCOMMONPARAMSPICLIST,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMoreSubmitOpinion(String uid, String content,String cid, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.CONTENT,content);
            requestParams.put(Constant.CID,cid);
            postAsyncMessage(Constant.MORE_SUBMIT_OPINION,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddAddress(String uid, String name,String phone,String addressHead,String addressFoot,int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.NAME,name);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.ADDRESSHEAD,addressHead);
            requestParams.put(Constant.ADDRESSFOOT, addressFoot);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.SERVICE_ADDR_ADD,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddrUpdate(String uid,String id, String name,String phone,String addressHead,String addressFoot,int type, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.ID,id);
            requestParams.put(Constant.NAME,name);
            requestParams.put(Constant.PHONE, phone);
            requestParams.put(Constant.ADDRESSHEAD,addressHead);
            requestParams.put(Constant.ADDRESSFOOT,addressFoot);
            requestParams.put(Constant.TYPE, type);
            postAsyncMessage(Constant.SERVICE_ADDR_UPDATE,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getDelAddress(String uid, String id, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.ID,id);
            postAsyncMessage(Constant.SERVICE_ADDR_DEL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUpdateNickName(String uid, String nickName, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.NICKNAME,nickName);
            postAsyncMessage(Constant.MY_MODULE_UPDATE_NICKNAME,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUpdatePhone(String uid, String phone, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.PHONE,phone);
            postAsyncMessage(Constant.MY_MODULE_UPDATE_PHONE,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUploadPic(String uid, String pic, String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams = new RequestParams();
            requestParams.put(Constant.UID, uid);
            requestParams.put(Constant.PIC,pic);
            postAsyncMessage(Constant.MY_MODULE_UPLOAD_PIC,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAdministrationTeenagers(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.ADMINISTRATIONTEENAGERS,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingReleaseDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.BUILDINGRELEASEDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getBuildingDetail(String bid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,bid);
            getAsyncMessage(Constant.BUILDINGDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLifeServiceDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.LIFESERVICEDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyDetail(String cid,String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.COMPANYDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyReleaseDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.COMPANYReleaseDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getBuildingSearch(String cid,String name,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.NAME,name);
            getAsyncMessage(Constant.BUILDINGSEARCH,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getEnterpriseSearch(String cid,String name,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.NAME,name);
            getAsyncMessage(Constant.ENTERPRISESEARCH,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingActivityDetail(String bid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.BID,bid);
            getAsyncMessage(Constant.BUILDINGACTIVITYDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getUploadCommonPicList(String pic,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.PIC,pic);
            postAsyncMessage(Constant.UPLOAD_COMMON_PIC_LIST,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getReleaseBuilding(String cid,String uid,String name,String sex,String img,String mobile,String building_name,String office_area,String sell_area,String commercial_area,String addr,String intro,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.UID,uid);
            requestParams.put(Constant.NAME,name);
            requestParams.put(Constant.SEX,Integer.parseInt(sex));
            requestParams.put(Constant.IMG,img);
            requestParams.put(Constant.MOBILE,mobile);
            requestParams.put(Constant.BUILDING_NAME,building_name);
            if(office_area!=null&& !office_area.isEmpty())
            requestParams.put(Constant.OFFICE_AREA,Double.parseDouble(office_area));
            if(sell_area!=null&& !sell_area.isEmpty())
            requestParams.put(Constant.SELL_AREA,Double.parseDouble(sell_area));
            if(commercial_area!=null&& !commercial_area.isEmpty())
            requestParams.put(Constant.COMMERCIAL_AREA,Double.parseDouble(commercial_area));
            requestParams.put(Constant.ADDR,addr);
            if(intro!=null && !intro.isEmpty())
            requestParams.put(Constant.INTRO,intro);
            postAsyncMessage(Constant.RELEASE_BUILDING,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeedbackSubmit(String cid,String uid,String type,String release_name,String title,String addr,String content,String img,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.UID,uid);
            requestParams.put(Constant.TYPE,type);
            requestParams.put(Constant.RELEASENAME,release_name);
            requestParams.put(Constant.TITLE,title);
            requestParams.put(Constant.ADDR,addr);
            requestParams.put(Constant.CONTENT,content);
            requestParams.put(Constant.IMG,img);
            postAsyncMessage(Constant.FEEDBACKSUBMIT,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getReleaseCompany(String cid,String uid,String name,String sex,String mobile,String company_name,String building_name,String scale,String range,String website,String addr,String intro,String img,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.UID,uid);
            requestParams.put(Constant.NAME,name);
            requestParams.put(Constant.GENDER,Integer.parseInt(sex));
            requestParams.put(Constant.PHONE,mobile);
            requestParams.put(Constant.COMPANYNAME,company_name);
            if(building_name!=null && !building_name.isEmpty())
            requestParams.put(Constant.BUILDINGNAME,building_name);
            if(scale!=null && !scale.isEmpty())
            requestParams.put(Constant.SCALE,scale);
            if(range!=null && !range.isEmpty())
            requestParams.put(Constant.RANGE,range);
            if(website!=null && !website.isEmpty())
            requestParams.put(Constant.WEBSITE,website);
            requestParams.put(Constant.ADDR,addr);
            if(intro!=null && !intro.isEmpty())
            requestParams.put(Constant.INTRO,intro);
            requestParams.put(Constant.IMG,img);
            postAsyncMessage(Constant.RELEASE_COMPANY,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingActivitySignup(String uid,String cid,String bid,String name,int sex,String mobile,String content,int type,String flag)
    {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.UID,uid);
            requestParams.put(Constant.BID,bid);
            requestParams.put(Constant.NAME,name);
            requestParams.put(Constant.SEX,sex);
            requestParams.put(Constant.MOBILE,mobile);
            requestParams.put(Constant.CONTENT,content);
            requestParams.put(Constant.TYPE,type);
            postAsyncMessage(Constant.BUILDINGACTIVITYSIGNUP,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getMoreUserProtocol(String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            getAsyncMessage(Constant.MORE_USER_PROTOCOL, flag);
        } catch (Exception e) {
        }
    }

    public void getPeopleSuperviseList(String cid,int skip,int limit,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.SKIP,skip);
            requestParams.put(Constant.LIMIT,limit);
            getAsyncMessage(Constant.PEOPLESUPERVISELIST,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeedBackDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.FEEDBACKDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getFeedBackType(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.FEEDBACKTYPE,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingCommunityActivityDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.BUILDINGCOMMUNITYACTIVITYDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBaiXingJianDuDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.PEOPLEFEEDBACKDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getOfficeDuty(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.OFFICEDUTY,requestParams, flag);
        } catch (Exception e) {
        }
    }
    public void getFeaturesDetail(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.STREETFEATURESDETAIL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getGridManagementList(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.GRIDMANAGEMENTLIST,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getStreetInfo(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.STREETINFO,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAddrList(String uid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.UID,uid);
            getAsyncMessage(Constant.SERVICE_ADDR_LIST,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getBuildingReleaseDelete(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.BUILDINGRELEASEDELETE,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCompanyReleaseDelete(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.COMPANYRELEASEDELETE,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityActivityDelete(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.COMMUNITYACTIVITYDELET,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getLightHouseDelete(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            getAsyncMessage(Constant.LIGHTHOUSEDELETE,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityDelServerById(String id,int type,int subType,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            requestParams.put(Constant.TYPE,type);
            requestParams.put(Constant.SUBTYPE,subType);
            postAsyncMessage(Constant.COMMUNITYDELSERVERBYID,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getDelMyApplyById(String id,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            postAsyncMessage(Constant.DelMyAPPLYURL,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityUpdateServerById(String id,int type,int subType,int score,String remarks,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            requestParams.put(Constant.TYPE,type);
            requestParams.put(Constant.SUBTYPE,subType);
            requestParams.put(Constant.SCORE,score);
            requestParams.put(Constant.REMARKS,remarks);
            postAsyncMessage(Constant.COMMUNITYUPDATESERVERBYID,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getAssessApplyById(String id,int score,String remarks,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.ID,id);
            requestParams.put(Constant.SCORE,score);
            requestParams.put(Constant.REMARKS,remarks);
            postAsyncMessage(Constant.ASSESSAPPLY,requestParams, flag);
        } catch (Exception e) {
        }
    }


    public void getVersionInfo(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.SYSTEMNEWVERSIONINFO,requestParams, flag);
        } catch (Exception e) {
        }
    }

    public void getCommunityBussinessApplyTitleList(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.BUSINESSAPPLYTITLELIST, requestParams,flag);
        } catch (Exception e) {
        }
    }

    public void getAroundFindTitleList(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.AROUNDFINDTITLELIST, requestParams,flag);
        } catch (Exception e) {
        }
    }

    public void getLookAllList(String cid,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.CID,cid);
            getAsyncMessage(Constant.LOOKALLLIST, requestParams,flag);
        } catch (Exception e) {
        }
    }

    public void postPmiVerification(String streetId,String phone,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.STREETID,streetId);
            requestParams.put(Constant.PHONE,phone);
            postAsyncMessage(Constant.PMIVERIFICATION, requestParams,flag);
        } catch (Exception e) {
        }
    }

    public void getCommunitySlSubmit(String uid,String cid,int type,int subType,String obj,String previousId,String flag) {
        try {
            Long t = new Date().getTime();
            String token = Tools.getToken(HttpHeadParams.getInstance().getAccessKey(), t, HttpHeadParams.getInstance().getSecretKey());
            HttpHeadParams.getInstance().setT(t.toString());
            HttpHeadParams.getInstance().setToken(token);
            RequestParams requestParams=new RequestParams();
            requestParams.put(Constant.UID,uid);
            requestParams.put(Constant.CID,cid);
            requestParams.put(Constant.TYPE,type);
            requestParams.put(Constant.SUBTYPE,subType);
            requestParams.put(Constant.OBJ,obj);
            requestParams.put(Constant.PREVIOUSID,previousId);
            postAsyncMessage(Constant.COMMUNITYSLSUBMIT,requestParams,flag);
        } catch (Exception e) {
        }
    }

}
